package com.ohs.bll.service.impl;

import java.util.List;

import com.ohs.bll.service.RoleService;
import com.ohs.dal.dao.RoleDAO;
import com.ohs.dal.model.Role;

public class RoleServiceImpl implements RoleService {

	private RoleDAO roleDAO;

	public void add(Role entity) {
		roleDAO.add(entity);
	}

	public Role get(int roomId) {
		return roleDAO.get(roomId);
	}

	public List<Role> list() {
		return roleDAO.list();
	}

	public RoleDAO getRoleDAO() {
		return roleDAO;
	}

	public void setRoleDAO(RoleDAO roleDAO) {
		this.roleDAO = roleDAO;
	}

}
